package com.ly.heart.service.impl;

import java.util.Collections;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ly.heart.domain.dto.KingInquiryQueryDto;
import com.ly.heart.domain.vo.KingInquiryOfferVo;
import com.ly.heart.domain.vo.KingInquiryVo;
import com.ly.heart.mapper.KingInquiryDetailMapper;
import com.ly.heart.service.IKingInquiryDetailService;
import org.springframework.stereotype.Service;
import com.ly.heart.domain.KingInquiryDetailEntity;

import javax.annotation.Resource;

/**
 * 金蝶-询价/报价单明细信息Service业务层处理
 *
 * @author cxl
 * @date 2024-07-11
 */
@Service
public class KingInquiryDetailServiceImpl extends ServiceImpl<KingInquiryDetailMapper,KingInquiryDetailEntity> implements IKingInquiryDetailService {

    @Resource
    private KingInquiryDetailMapper kingInquiryDetailMapper;

    /**
     * 查询金蝶-询价/报价单明细信息
     *
     * @param id 金蝶-询价/报价单明细信息ID
     * @return 金蝶-询价/报价单明细信息
     */
    @Override
    public KingInquiryDetailEntity selectKingInquiryDetailEntityById(String id)
    {
        return kingInquiryDetailMapper.selectKingInquiryDetailEntityById(id);
    }

    /**
     * 查询金蝶-询价/报价单明细信息列表
     *
     * @param kingInquiryDetailEntity 金蝶-询价/报价单明细信息
     * @return 金蝶-询价/报价单明细信息
     */
    @Override
    public List<KingInquiryDetailEntity> selectKingInquiryDetailEntityList(KingInquiryDetailEntity kingInquiryDetailEntity)
    {
        return kingInquiryDetailMapper.selectKingInquiryDetailEntityList(kingInquiryDetailEntity);
    }

    /**
     * 新增金蝶-询价/报价单明细信息
     *
     * @param kingInquiryDetailEntity 金蝶-询价/报价单明细信息
     * @return 结果
     */
    @Override
    public int insertKingInquiryDetailEntity(KingInquiryDetailEntity kingInquiryDetailEntity)
    {
        return kingInquiryDetailMapper.insertKingInquiryDetailEntity(kingInquiryDetailEntity);
    }

    /**
     * 修改金蝶-询价/报价单明细信息
     *
     * @param kingInquiryDetailEntity 金蝶-询价/报价单明细信息
     * @return 结果
     */
    @Override
    public int updateKingInquiryDetailEntity(KingInquiryDetailEntity kingInquiryDetailEntity)
    {
        return kingInquiryDetailMapper.updateKingInquiryDetailEntity(kingInquiryDetailEntity);
    }

    /**
     * 批量删除金蝶-询价/报价单明细信息
     *
     * @param ids 需要删除的金蝶-询价/报价单明细信息ID
     * @return 结果
     */
    @Override
    public int deleteKingInquiryDetailEntityByIds(String[] ids)
    {
        return kingInquiryDetailMapper.deleteKingInquiryDetailEntityByIds(ids);
    }

    /**
     * 删除金蝶-询价/报价单明细信息信息
     *
     * @param id 金蝶-询价/报价单明细信息ID
     * @return 结果
     */
    @Override
    public int deleteKingInquiryDetailEntityById(String id)
    {
        return kingInquiryDetailMapper.deleteKingInquiryDetailEntityById(id);
    }

    @Override
    public List<KingInquiryVo> getKingInquiryPageList(KingInquiryQueryDto queryDto) {
        return kingInquiryDetailMapper.getKingInquiryPageList(queryDto);
    }

    @Override
    public List<KingInquiryOfferVo> getKingInquiryOfferPageList(KingInquiryQueryDto queryDto) {
        return kingInquiryDetailMapper.getKingInquiryOfferPageList(queryDto);
    }

}
